from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
  # Example:
  #(r'^myproject/', include('myproject.foo.urls')),
  
  # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
  # to INSTALLED_APPS to enable admin documentation:
  (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  
  # Uncomment the next line to enable the admin:
  (r'^admin/(.*)', admin.site.root),
  (r'^cadastro/', include('cadastro.urls')),
  (r'^aula/', include('aula.urls')),	
  (r'^$', 'cadastro.views.login'),	
)

if settings.DEBUG:
  import os
  urlpatterns += patterns('',
    (r'^media/(.*)$', 'django.views.static.serve',
    {'document_root': 'media'}),
  )
